<?php 
$www_root = dirname(dirname(dirname(__FILE__))).'/';
require_once $www_root.'protected/config/main.php'; $DB->conn(); 

$user = new M_User($_POST['txt_username'], $_POST['txt_password']);

echo $user->authenticate();
$DB->close();
?>
